<?php
/**
 * Created by Cong Khuong.
 * User: Dev
 * Date: 06/1/13
 * Time: 10:20 AM
 * To change this template use File | Settings | File Templates.
 */

class MailHelper {
	/*
	**	Use sendMailActive by provide it a parameter User model.
	** Example: $mUser = User::model()->findByPk(45);
	**			$mails = new MailHelper;
    **          $message = $mails->forgotPassword($mUser);
	*/ 
	public function createTicket($ticket) {
		return	'<p>Hello '.$ticket->name.' </p> <br/>
		<p>Your complaint has been received and assigned ticket ' .$ticket->ticket_code.' A representative will follow-up with you as soon as possible.</p> <br/>
		<p>
		Subject: <br/>
		'.$ticket->subject.'<br/>
		Message:<br/>
		Summary: <br/>
		'.$ticket->message.'<br/>
		</p>
		<p>If you wish to send additional comments or information regarding this issue, please do not open a new ticket. Simply login update the ticket.</p> <br/>
		Thank you.';
	}
	
	public function updateTicket($ticket) {
		return	'<p>Hello '.$ticket->name.'</p><br/>
		<p>Our customer support team personnel has replied to your support request '.$ticket->ticket_code.'</p><br/>
		
		<p>We hope this response has sufficiently answered your questions. If not, please do not send another email. Instead, reply to this email or login to your account for a complete archive of all your support request and responses.</p><br/>
		
		Your ticket with ticket code ' .$ticketcode .'have been updated. You can use your email and ticket number to view result.';
	}
}